package com.words.result;

import lombok.Data;

@Data
public class Result {
    private int status;       //返回编码
    private String msg;     //提示信息
    private Object data;    //数据
    //初始化静态方法（调用不用创建对象）
    public static Result init(int status,String msg,Object data) {
        Result result = new Result();
        result.status = status;
        result.msg = msg;
        result.data = data;
        return result;
    }

}
